package es.ceura.wilder.datastructures.response;

/**
 *
 * @author Jorge Madrid
 */
public class ResponseStatusLine {

    private final String httpVersion;
    private HTTPCode code;

    public ResponseStatusLine(String httpVersion) {
        this.httpVersion = httpVersion;
    }

    public String getHttpVersion() {
        return httpVersion;
    }

    public HTTPCode getHTTPCode() {
        return code;
    }

    public void setCode(HTTPCode code) {
        this.code = code;
    }
    
    @Override
    public String toString() {
        return "ResponseStatusLine{" + "httpVersion=" + httpVersion + ", code=" + code + '}';
    }
}
